package com.minhang.adsb.controller;

import com.minhang.adsb.service.AdsbDynamicPointService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/AdsbDynamicPoint" )
public class AdsbController {
    @Autowired
    private AdsbDynamicPointService adsbDynamicPointService;
    @PostMapping("/report/adsb/dynamicNew")
    public void reportAdsbDynamicNew(@RequestBody String as) {
        adsbDynamicPointService.toSave(as);
    }
}
